package byj.com.meishi.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by Administrator on 2016/9/22 0022.
 */
public class DbHelper extends SQLiteOpenHelper{

    public DbHelper(Context contex){
        super(contex,"shoucang.db",null,1);
    }

    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase) {
        String sql = "CREATE TABLE collect (_id INTEGER PRIMARY KEY AUTOINCREMENT,url VARCHAR(100),caption VARCHAR(100))";
        sqLiteDatabase.execSQL(sql);

    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }
}
